package com.hys.rest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.hys.rabbitmq.send.Sender;

@RestController
@RequestMapping(value="/rabbit")
public class Rest {

	@Autowired
	private Sender send;
	
	@RequestMapping(value="/send")
	public void send(){
		send.send();
	}
	
	@RequestMapping(value="/sends")
	public void sends(){
		send.sends();
	}
	
	@RequestMapping(value="/directSend")
	public void directSend(){
		send.directSend();
	}
	
	@RequestMapping(value="/topic1")
	public void topic1(){
		send.topic1();
	}
	
	@RequestMapping(value="/topicAll")
	public void topicAll(){
		send.topicall();
	}
}
